import request from '@/utils/request'

// 查询人员危害列表
export function listPhysicalharms(query) {
  return request({
    url: '/physical/physicalharms/list',
    method: 'get',
    params: query
  })
}

// 查询人员危害详细
export function getPhysicalharms(id) {
  return request({
    url: '/physical/physicalharms/' + id,
    method: 'get'
  })
}

// 新增人员危害
export function addPhysicalharms(data) {
  return request({
    url: '/physical/physicalharms',
    method: 'post',
    data: data
  })
}

// 修改人员危害
export function updatePhysicalharms(data) {
  return request({
    url: '/physical/physicalharms',
    method: 'put',
    data: data
  })
}

// 删除人员危害
export function delPhysicalharms(id) {
  return request({
    url: '/physical/physicalharms/' + id,
    method: 'delete'
  })
}
